﻿using Abp.AutoMapper;
using Akso.Codes.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Akso.Web.Areas.BasicDataModule.Models.Codes
{
    public class CodesViewModel
    {
    }
    [AutoMapFrom(typeof(GetCodeForEditOutput))]
    public class CreateOrEditCodeModalViewModel : GetCodeForEditOutput
    {
        public bool IsEditMode
        {
            get { return Code.Id.HasValue; }
        }

        public CreateOrEditCodeModalViewModel(GetCodeForEditOutput output)
        {
            output.MapTo(this);
        }
    }
}